<div class="block-content block-content-full">
    <div class="form-group row">
        {!! Form::label('name', '角色名称:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-5">
            {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => '必填', 'required']) !!}
        </div>
    </div>

    <div class="form-group row">
        {!! Form::label('permission_id', '权限选择:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-10">
            @foreach($perms as $perm)
                <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="permission_id_{{$perm->id}}" name="permission_id[]"
                           @if(isset($permissionRoles) && in_array($perm->id,current($permissionRoles))) checked @endif value="{{$perm->id}}">
                    <label class="custom-control-label" for="permission_id_{{$perm->id}}">{{$perm->description}}</label>
                </div>
            @endforeach
        </div>
    </div>
</div>
<div class="block-footer">
    <button type="button" class="btn btn-default" onclick="history.go(-1)">取　消</button>
    <button type="submit" class="btn btn-primary">确　定</button>
</div>

